import requests
# 请求网址:http://182.92.81.159:8080/wx/auth/login
# 请求方法:POST
# 请求头：
# Content-Type: application/json;charset=utf-8
# 请求体：
# {"username":"user123","password":"user123"}
# 返回数据：
resp = requests.post(url="http://192.168.191.130:8080/wx/auth/login",
              headers={"Content-Type":"application/json;charset=utf-8"},
              json={"username":"user123","password":"user123"})
# 打印结果
print(resp.json())          # json格式的响应体
print(resp.status_code)     # 状态码
print(resp.url)             # 请求URL
print(resp.encoding)        # 响应头字符集编码
print(resp.headers)         # 响应头